<?php 
gatekeeper();
$group_guid = get_input('group_guid', -1);

$file = "";

if (isset ( $_FILES ['upload'] ) && $_FILES ['upload'] ['error'] == 0) {
	$file = $_FILES ['upload'] ['tmp_name'];
}

if ($file) {
	include 'classes/PHPExcel/IOFactory.php';
	
	$objPHPExcel = PHPExcel_IOFactory::load ( $file );
	
	$sheetData = $objPHPExcel->getActiveSheet ()->toArray ( null, true, true, true );
	$message = "";
	$header = true;
	
	foreach ( $sheetData as $row ) {
		if ($header) {
			$header = false;
			continue;
		}
	}
}

$listproj_url = elgg_get_site_url () . "submana/listpro/$group_guid";

forward ( $listproj_url );